<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset=utf-8>
    <meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1">
    <meta name=renderer content=webkit>
    <meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
    <title>vue-element-admin</title>
    <link href="http://127.0.0.1:11209/download/css/element-ui.css" rel="stylesheet">
    <link href="http://127.0.0.1:11209/download/css/common.css" rel="stylesheet">
    <style>
        .text {
            font-size: 14px;
        }

        .item {
            margin-bottom: 18px;
        }

        .clearfix:before,
        .clearfix:after {
            display: table;
            content: "";
        }

        .clearfix:after {
            clear: both
        }

        .box-card{
            margin-bottom: 20px;
        }

        .notice{
            color: darkgray;
        }
    </style>
</head>
<body>
<div id="app">
    <div id="msg" align="center" style="color: red"></div>
    <div  align="center" style="color: red">{{requestMsg}}</div>
    <el-container>
        <el-header v-cloak>

            <el-row>
                <span class="root-path"><el-radio v-model="sys" label="oa">OA</el-radio>:{{oaRootPath}}<el-button
                        type="text" @click="choseRoot('oa')">OA根目录</el-button></span>
            </el-row>

            <el-row>
                <span class="root-path"><el-radio v-model="sys" label="hr">HR</el-radio>:{{hrRootPath}}<el-button
                        type="text" @click="choseRoot('hr')">HR根目录</el-button></span>
            </el-row>

        </el-header>
        <el-container>
            <el-aside width="400px">
                <el-tree
                        class="filter-tree"
                        :data="treeData"
                        :props="defaultProps"
                        :filter-node-method="filterNode"
                        :highlight-current="true"
                        ref="fileTree"
                        :check-strictly="true"
                        :show-checkbox="true"
                        :load="loadChildren"
                        :lazy="true"
                        @check="nodeCheck">
                </el-tree>
            </el-aside>
            <el-container>
                <el-main>
                    <el-card class="box-card">
                        <div slot="header" class="clearfix">
                            <span>
                                    <el-input
                                            placeholder="输入文件名过滤,目录需打开才可查找到文件"
                                            v-model="filterText"
                                            size="small"
                                            style="width: 300px">
                                    </el-input>
                            </span>
                            <el-button style="float: right; padding: 3px 0" type="text" @click="saveHistory">保存代码清单</el-button>
                        </div>
                        <div v-html="winCodePath" class="text item"></div>
                    </el-card>
                    <el-card class="box-card">
                        <div slot="header" class="clearfix">
                            <span class="root-path">Linux版</span>
                        </div>
                        <div v-html="linuxCodePath" class="text item"></div>
                    </el-card>
                </el-main>
                <el-footer>
                    <el-card class="box-card">
                        <div slot="header" class="clearfix">
                            <span class="root-path">代码清单提交须知</span>
                        </div>
                        <div class="notice">
                            <span>1.web.xml不可直接发布<br></span>
                            <span>2.Gateway.xml不可直接发布<br></span>
                            <span>3.resources目录下配置文件不可直接发布<br></span>
                            <span> 4.使用内部类时，内部类class也需要加在发布路径内<br></span>
                        </div>
                    </el-card>
                </el-footer>
            </el-container>
        </el-container>
    </el-container>
</div>

</body>
<script src="http://127.0.0.1:11209/download/js/vue-2.5.16.js"></script>
<script src="http://127.0.0.1:11209/download/js/elementUi.js"></script>
<!--<script src="http://127.0.0.1:11209/download/js/axios.min.js"></script>-->
<script src="http://127.0.0.1:11209/download/js/jquery.js"></script>
<script src="http://127.0.0.1:11209/download/js/index.js"></script>
</html>